<?php 
include_once ("function.php");
$start=$_POST['start'];
$end=$_POST['end'];
setcookie("ks",$start);
setcookie("ke",$end);
$c= $_POST['card'];
setcookie("card",$c);
// $card=iconv('utf-8','gb2312','$c');
mssql_select_db ( $mssql_database, $conn );
$sql = "select * from ST_Person where Card_No='$c'";
$query= mssql_query ( $sql );



?>
<html>
<head>
    <meta charset="UTF-8"  http-equiv="refresh" content="1; url=kmx.php">
  
  </head>
  <p>  查询完毕！一秒后返回 </p>
   <?php
  while ( $rst = mssql_fetch_assoc ( $query) ){
	  ?>
	  <p><?php
	$p=$rst['Person_ID'];
	setcookie("person",$p);
	?>
	</p>
  <?php
  }
  ?>
  
  <body>
 

</body>

</html>

